#include <tsin/util/ConsoleLogger.hpp>

#include <iostream>

using namespace tsin;

ConsoleLogger::ConsoleLogger()
{
}

ConsoleLogger::~ConsoleLogger()
{
}

Logger &ConsoleLogger::operator<<(const int i)
{
        if (current < filter)
                std::cerr << i;
        return *this;
}

Logger &ConsoleLogger::operator<<(const char *str)
{
        if (current < filter)
                std::cerr << (str ? str : "<null>");
        return *this;
}

Logger &ConsoleLogger::operator<<(const float d)
{
        if (current < filter)
                std::cerr << d;
        return *this;
}

